package chp13;

import java.util.Scanner;

public class Test3b {

    public static void main(String[] args) {
        //登录验证
        //假设账号是admin 密码是123456
        Scanner input = new Scanner(System.in);
        System.out.print("请输入账号:");
        String account = input.next();
        System.out.print("请输入密码:");
        String password = input.next();
        if(account.equals("admin") && password.equals("123456")){
            System.out.println("登录成功");
        }else{
            System.out.println("登录失败");
        }
    }
}
